<?
    // Example: html2text
    // Converts HTML to formatted ASCII text.
    // Run with: php < ex_html2text.php

    include ("html2text.inc");

    $htmlText = file_get_contents('sample.html');

    $htmlToText = new Html2Text ($htmlText);
    $text = $htmlToText->convert();
    echo $text;

?>
